import React from 'react';
import { BrowserRouter, Route, Routes } from 'react-router-dom'
import Home from './view/home'
import Detail from './view/detail'
const App = () => {
  return (
    <div>
      <BrowserRouter>
        <Routes>
          <Route path="/home" element={<Home></Home>}></Route>
          <Route path="/detail/:id" element={<Detail></Detail>}></Route>
        </Routes>
      </BrowserRouter>
    </div>
  );
}

export default App;
